
import 'package:flutter/material.dart';

class ClickTxt extends StatelessWidget {
   String? info;
   VoidCallback? onPressed;
   TextStyle? style ;
   ClickTxt({
     Key? key,
     @required this.info,
     @required this.onPressed,
     this.style = const TextStyle(fontSize: 20)}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return TextButton(onPressed: onPressed, child: Text(info == null?"":info!,style: style,));
  }
}
